﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Controller : MonoBehaviour {

	public GameObject canvas1;

	// Use this for initialization
	void Start () {
		CancelGame();
	}
	
	// Update is called once per frame
	void Update () {
	}

	public void PauseGame()
	{
		Time.timeScale = 0;
	}

	public void CancelGame()
	{
		Time.timeScale = 1;
	}

	public void RestartGame()
	{

		SceneManager.LoadScene (0);	

	}

	public void QuitGame()
	{
		Application.Quit ();
	}
}
